package com.example.meitu.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.util.Date;

import com.example.meitu.api.common.DateUtils;
import lombok.Data;

/**
 * @TableName mt_article
 */
@TableName(value ="mt_article")
public class Article implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String docId;

    private String docUrl;

    private Integer brandId;

    private String brandName;

    private Integer brandTimes;

    private String title;

    private Integer publishTime;

    @TableField(exist = false)
    private LocalDate publishDate;

    private Integer positiveFlag;

    private Integer mediaId;

    private String platform;

    private String platformExtends;

    private String accountId;

    private String accountName;

    private Integer subUnionId;

    private String publishPlatform;

    private String createBy;

    private String updateBy;

    private Date createTime;

    private Date updateTime;

    private String remarks;

    private String delFlag;

    private Integer relatedType;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public String getDocUrl() {
        return docUrl;
    }

    public void setDocUrl(String docUrl) {
        this.docUrl = docUrl;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public Integer getBrandTimes() {
        return brandTimes;
    }

    public void setBrandTimes(Integer brandTimes) {
        this.brandTimes = brandTimes;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Integer publishTime) {
        this.setPublishDate(DateUtils.timeConvertLocaldate(publishTime));
        this.publishTime = publishTime;
    }

    public LocalDate getPublishDate() {
        return this.publishDate;
    }

    public void setPublishDate(LocalDate publishDate) {
        this.publishDate = publishDate;
    }

    public Integer getPositiveFlag() {
        return positiveFlag;
    }

    public void setPositiveFlag(Integer positiveFlag) {
        this.positiveFlag = positiveFlag;
    }

    public Integer getMediaId() {
        return mediaId;
    }

    public void setMediaId(Integer mediaId) {
        this.mediaId = mediaId;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getPlatformExtends() {
        return platformExtends;
    }

    public void setPlatformExtends(String platformExtends) {
        this.platformExtends = platformExtends;
    }

    public Integer getSubUnionId() {
        return subUnionId;
    }

    public void setSubUnionId(Integer subUnionId) {
        this.subUnionId = subUnionId;
    }

    public String getPublishPlatform() {
        return publishPlatform;
    }

    public void setPublishPlatform(String publishPlatform) {
        this.publishPlatform = publishPlatform;
    }

    public Integer getRelatedType() {
        return relatedType;
    }

    public void setRelatedType(Integer relatedType) {
        this.relatedType = relatedType;
    }
}